"""
Created on 2024/9/2 下午4:15
@author:刘飞
@description:
"""
from rest_framework import serializers
from yc_django_utils.serializers import CustomModelSerializer
from yc_django_utils.validator import CustomUniqueValidator
from ..models import Post


class PostSerializer(CustomModelSerializer):
    class Meta:
        model = Post
        fields = '__all__'
        read_only_fields = ('id',)


class PostCreateUpdateSerializer(CustomModelSerializer):
    class Meta:
        model = Post
        fields = '__all__'
        read_only_fields = ('id',)
